package controller

import (
	"cloudpichost/internal/controller/image_controller"
	"cloudpichost/internal/middleware"
	"cloudpichost/internal/router"
	"cloudpichost/pkg/util/qrcode"
)

func init() {
	r := router.New("system", "/system", middleware.AuthMiddleware)
	r.GET("img_list", image_controller.ImgListPage)
	r.GET("imglist_json", image_controller.ImgListJson)
	r.GET("qrcode", qrcode.CreateQrcode)
	r.POST("delImgList", image_controller.DelImgList)
	r.POST("delImg", image_controller.DelImg)
	r.GET("img_show", image_controller.ImgShowPage)
}
